package cn.wolfcode.cms.mapper;

import cn.wolfcode.cms.domain.Present;
import cn.wolfcode.cms.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PresentMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Present record);

    Present selectByPrimaryKey(Long id);

    List<Present> selectAll();

    int updateByPrimaryKey(Present record);

    List<Present> queryForList(QueryObject qo);

    int queryForCount(QueryObject qo);

    void updateTotalNum(@Param("preid") Long preid, @Param("prenum") Integer prenum);
}